package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface SearchDao extends ElasticsearchRepository<Article,String> {
    //1.关键词查询
    Page<Article> findByTitleLikeOrContentLike(String title,String content, Pageable pageable);
}
